<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%-- 我们使用 JSTL 来访问数据 --%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'test.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
			<DIV id="wp-content-pri">
			<c:forEach items="${blogs}" var="blog">
				<DIV class="post" id="post-ff80818129036bc60129036bceaf0006">
					<H2>
						<A
							href="getSpecificBlog?blog=${blog.id }"
							rel="bookmark" title="Permanent Link to Hello Myblog!">${blog.blogname }</A>
					</H2>
					<DIV class="post-meta">
						<P>
							<SPAN class="post-meta-date">${blog.pubTime }</SPAN> Category
							<SPAN class="post-meta-category"><A
								href="http://localhost:8080/myblog-1.8.3/category/Java/"
								title="View all entries in [Java]" rel="category tag">${blog.category.catename }</A>
							</SPAN>
							<SPAN class="post-meta-comments"><A
								href="http://localhost:8080/myblog-1.8.3/entry/Hello-Myblog.html#respond"
								title="Comment on Hello Myblog!">Leave a comment</A>
							</SPAN> Tag
							<SPAN class="post-meta-tag"><A
								href="http://localhost:8080/myblog-1.8.3/tag/Myblog/"
								title="View all entries in [Myblog]" rel="category tag">${blog.tags }</A>
							</SPAN>
							<SPAN>Views:0</SPAN>
						</P>
					</DIV>
					<P>
						${blog.content }
					</P>
					<A
						href="http://localhost:8080/myblog-1.8.3/entry/Hello-Myblog.html"
						rel="bookmark" title="Permanent Link to Hello Myblog!">[more..]</A>
				</DIV>
				</c:forEach>
				<DIV>
					<P>
						<SPAN>${jumpLinkHtml }</SPAN>
					</P>
				</DIV>
			</DIV>
	</body>
</html>

